package com.ruoyi.zhgd.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 马歇尔稳定度测定仪_结果业务对象 n_laboratory_marshall_stability_new_res
 *
 * @author zyb
 * @date 2023-09-11
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class NLaboratoryMarshallStabilityNewResBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 设备id
     */
    @NotBlank(message = "设备id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceId;

    /**
     * 数据标志FLAG
     */
    @NotBlank(message = "数据标志FLAG不能为空", groups = { AddGroup.class, EditGroup.class })
    private String flag;

    /**
     * 稳定度值
     */
    @NotNull(message = "稳定度值不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal wd;

    /**
     * 流值(mm)
     */
    @NotNull(message = "流值(mm)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal flux;

    /**
     * 创建时间
     */
    @NotNull(message = "创建时间", groups = { AddGroup.class, EditGroup.class })
    private Date createTime;

    /**
     * 原始数据
     */
    @NotBlank(message = "原始数据不能为空", groups = { AddGroup.class, EditGroup.class })
    private String originalData;

    /**
     * 样品id
     */
    @NotBlank(message = "样品id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sampleId;

    /**
     * 设备baseCode
     */
    @NotBlank(message = "设备baseCode", groups = { AddGroup.class, EditGroup.class })
    private String baseCode;


    /**
     * 开始时间
     */
    @NotBlank(message = "开始时间", groups = { AddGroup.class, EditGroup.class })
    private String staDate;

    /**
     * 结束时间
     */
    @NotBlank(message = "结束时间", groups = { AddGroup.class, EditGroup.class })
    private String endDate;

    /**
     * 是否合格1合格0不合格
     */
    @NotBlank(message = "是否合格1合格0不合格", groups = { AddGroup.class, EditGroup.class })
    private String eligible;

    /**
     * 是否关联1已关联0未关联
     */
    @NotBlank(message = "是否关联1已关联0未关联", groups = { AddGroup.class, EditGroup.class })
    private String relevance;

}
